<?php
namespace app\admin\validate;
use think\Validate;

/**
 * 题库信息验证器
 * Created by PhpStorm.
 * User: tyll
 * Date: 2019/10/22
 * Time: 15:11
 */
class ClassKu extends Validate{

    protected $rule = [
        'name'   => 'require',
        'remark' => 'require',
    ];

    protected $message = [
        'name.require'   => '题库名称必须填写',
        'remark.require' => '题库备注必须填写',
    ];

    protected $scene = [
        'add'  => ['name','remark'],
        'edit' => ['name','remark'],
    ];
}